package com.codi.bus.core.service;

import com.codi.bus.core.domain.Lookup;
import com.codi.bus.exception.BaseException;

import java.util.List;

public interface LookupService {

    /**
     * 根据字典类型获取所有字典值
     *
     * @param lookupType
     * @return
     * @throws BaseException
     */
    List<Lookup> getLookups(String lookupType) throws BaseException;
    /**
     * 根据字典类型获取企业宝
     *
     * @param lookupType
     * @return
     * @throws BaseException
     */
    List<Lookup> getOrganBabies(String lookupType) throws BaseException;
    Lookup getOrganBaby(String lookupType, String lookupValue) throws BaseException;


    int deleteOrganBaby(String lookupType, String lookupValue) throws BaseException;

    /**
     * 获取lookup单条记录
     * shi.pengyan 2017-10-23 13:16:58
     *
     * @param lookupType
     * @return
     */
    Lookup getLookup(String lookupType);

    /**
     * 根据字典类型，字典值获取字典项
     *
     * @param lookupType
     * @param lookupValue
     * @return
     * @throws BaseException
     */
    Lookup getLookup(String lookupType, String lookupValue) throws BaseException;


    /**
     * 判断是否是t0基金
     *
     * @param fundCode
     * @return
     */
    Boolean isT0Fund(String fundCode);


    boolean updateLookup(Lookup lookup);
}
